define(function(require, exports) {
	var pubjs = require('pubjs');
	var echarts = require('@base/echarts');

	// 单指标柱状图
	var OneMetric = echarts.bar.extend({
		init: function(config) {
			config = pubjs.conf(config, {
				// 主题颜色, 柱颜色
				color: ['#3EC7EE', '#EAEAEA'],
				build: {
					// 关闭拖拽重计算，去除饼图外的边框线
					calculable: false,
					// 不显示工具箱
					toolbox: {
						show: false
					},
					legend: {
						show: false
					},
					tooltip: {
						formatter: '{c}'
					},
					grid: {
						x: 30,
						y: 10,
						x2: 10,
						y2: 30,
						borderWidth: 0
					},
					xAxis: {
						// 横轴刻度
						axisTick: {
							show: false
						},
						// 横轴轴线
						axisLine: {
							show: false
						},
						// 横轴上的纵向分割线
						splitLine: {
							show: false
						},
						// 标记显示间隔
						axisLabel: {
							interval: 0
						},
						boundaryGap: true
					},
					yAxis: {
						axisLine: {
							show: false
						}
					},
					series: {
						barWidth: 20,
						barBorderRadius: 0,
						selectedMode: false,
						markPoint: {
							show: false
						},
						markLine: {
							show: false
						}
					}
				}
			});
			var c = config.get();
			c.build.yAxis.splitLine = {
				lineStyle: {
					color: c.color[1]
				}
			};

			this.Super('init', arguments);
		}
	});
	exports.oneMetric = OneMetric;
});